-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: New livechat conversations are not assigned to contact manager #34210
Conversation
🦋 Changeset detectedLatest commit: 02d5ef5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #34210 +/- ##
============================================
+ Coverage 59.28% 75.27% +15.99%
============================================
Files 2820 516 -2304
Lines 67932 22540 -45392
Branches 15102 5485 -9617
============================================
- Hits 40275 16968 -23307
+ Misses 24831 4911 -19920
+ Partials 2826 661 -2165
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests? :please:
apps/meteor/ee/app/livechat-enterprise/server/hooks/handleNextAgentPreferredEvents.ts
Outdated
Show resolved
Hide resolved
apps/meteor/ee/app/livechat-enterprise/server/hooks/handleNextAgentPreferredEvents.ts
Outdated
Show resolved
Hide resolved
/patch |
Pull request #34492 added to Project: "Patch 7.1.1" |
Proposed changes (including videos or screenshots)
contactManager
property stored in contacts when deciding the default new agent to assign to a livechat room (instead of only considering thecontactManager
field in visitors, which is not maintained anymore).Issue(s)
Steps to test or reproduce
In a Premium workspace, enable the "Assign new conversations to the contact manager" setting under Settings > Omnichannel > Routing. Then create a new contact manually (in the livechat contact center) using a livechat agent and assign yourself user as the contact manager (use the
contacts.get
endpoint to make sure thecontactManager
field contains the user id of the agent who created the contact). Then start a new livechat conversation using the info from the contact that has just been created.Expected result: the contact manager should be automatically assigned to the room if it is online.
Note: use "Auto Selection" as the "Omnichannel Routing Method" (under Settings > Omnichannel > Routing). Otherwise, only bot contact managers will be auto assigned to rooms.
Further comments
CORE-862